/**
 * 域名类型 Api
 * @type {SysDomainCategoryApi}
 */
const sysDomainCategoryApi = new class SysDomainCategoryApi extends BaseApi {
    constructor() {
        super({
            url: '/api/sysDomainCategory',
            exp: true,
            imp: true,
        })
    }

    async deleteById(id) {
        return (await rxajax.post(super.using(`/delete/${id}`))).data.data
    }

    async getExcelTemplate() {
        return (await rxajax.get(super.using(`/getExcelTemplate`))).data.data
    }

    async updateOrAdd(data) {
        return (await rxajax.post(super.using(`/update-or-add`), data, {type: 'json'})).data
    }

}